package com.iu.eblood.model;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;


/**
 * The persistent class for the EVENTTASK database table.
 * 
 */
@Entity
public class Eventtask implements Serializable {
	private static final long serialVersionUID = 1L;
	private EventtaskPK id;
	private Timestamp createddate;
	private int currentnumber;
	private Timestamp deleteddate;
	private String isactive;
	private int totalnumber;
	private Event event;
	private Task task;

    public Eventtask() {
    }


	@EmbeddedId
	public EventtaskPK getId() {
		return this.id;
	}

	public void setId(EventtaskPK id) {
		this.id = id;
	}
	

	public Timestamp getCreateddate() {
		return this.createddate;
	}

	public void setCreateddate(Timestamp createddate) {
		this.createddate = createddate;
	}


	public int getCurrentnumber() {
		return this.currentnumber;
	}

	public void setCurrentnumber(int currentnumber) {
		this.currentnumber = currentnumber;
	}


	public Timestamp getDeleteddate() {
		return this.deleteddate;
	}

	public void setDeleteddate(Timestamp deleteddate) {
		this.deleteddate = deleteddate;
	}


	public String getIsactive() {
		return this.isactive;
	}

	public void setIsactive(String isactive) {
		this.isactive = isactive;
	}


	public int getTotalnumber() {
		return this.totalnumber;
	}

	public void setTotalnumber(int totalnumber) {
		this.totalnumber = totalnumber;
	}


	//bi-directional many-to-one association to Event
    @ManyToOne
	@JoinColumn(name="EVENTID")
	public Event getEvent() {
		return this.event;
	}

	public void setEvent(Event event) {
		this.event = event;
	}
	

	//bi-directional many-to-one association to Task
    @ManyToOne
	@JoinColumn(name="TASKID")
	public Task getTask() {
		return this.task;
	}

	public void setTask(Task task) {
		this.task = task;
	}
	
}